package com.tuantuan.dao;

import java.util.List;

public interface CommenDao<T> {
	public void addEntity(T entity);
	public void updateEntity(T entity);
	public void deleteEntity(T entity);
	public T queryById(T entity);
	public T queryByCode(T entity);
	public T queryByPage(T entity);
	public T queryBySql(T entity,String sqlFlag);
	public List<T> queryAll(T entity);
	

}
